import request from '@/utils/request'
export function list(params) {
  return request({
     url:'/admin/touristCard/list',
     method:'get',
     params:params
  })
}
export function save(data) {
  return request({
     url:'/admin/touristCard/save',
     method:'post',
     data:data
  })
}

export function usedCard(data) {
  return request({
    url:'/admin/touristCard/usedCard',
    method:'post',
    data:data
  })
}


export function del(ids) {
  return request({
     url:'/admin/touristCard/del/'+ids,
     method:'post'
  })
}

export function find(id) {
  return request({
     url:'/admin/touristCard/find/'+id,
     method:'get',
  })
}

export function update(data) {
  return request({
     url:'/admin/touristCard/update',
     method:'post',
     data:data
  })
}

export function audit(id) {
  return request({
    url:'/admin/touristCard/audit/'+id,
    method: 'post',
  })
}

export function unAudit(id) {
  return request({
    url:'/admin/touristCard/unAudit/'+id,
    method: 'post',
  })
}

export function publishCard(data) {
  return request({
    url:'/admin/touristCard/publishCard',
    method: 'post',
    data:data
  })
}


export function validCard(data) {
  return request({
    url:'/admin/touristCard/validCard',
    method: 'post',
    params:data
  })
}

export function exchangePoint(id) {
  return request({
    url:'/admin/touristCard/exchangePoint/'+id,
    method:'post'
  })
}
